import request from "@/util/request.js"

const getBySpuId = (spuId)=>{
    return request({
        url:"Sku/GetBySpuId",
        params:{spuId}
    })
}

const getById = (id)=>{
    return request({
        url:"Sku/GetById",
        params:{id}
    })
}

const update = (data)=>{
    return request({
        url:"Sku/Update",
        data,
        method:"post"
    })
}

export default {
    getBySpuId,
    getById,
    update
}